<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib prefix="pg" tagdir="/WEB-INF/tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的订单 - 江宁义务网上商城 - 网购首选 - 正品低价、品质保障、货到付款、配送及时、放心服务、轻松购物！</title>
<meta name="description" content="义务商城-专业的综合网上购物商城，在线销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品、在线旅游等数万个品牌千万种优质商品。便捷、诚信的服务，为您提供愉悦的网上商城购物体验! ">
<meta name="Keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东商城">
<jsp:include page="../../../common/include.jsp"></jsp:include>
<!-- mobile setting -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<style>
</style>
</head>
<body>
<div class="wrapper">
    <jsp:include page="../../../common/top.jsp"></jsp:include>
    <div class="section_container">
        <!--Mid Section Starts-->
        <section><div class="section">
			<ul class="breadcrumb">
		      <li>&ouml; &nbsp;&nbsp;<a href="#">首页</a></li>
		      <li><a href="<c:url value="/urc/center"/>">用户中心</a></li>
		      <li class="active"><a href="javascript:">我的订单</a></li>
		    </ul>
        	<div class="list_nav">
        		<!-- people center Left  starts-->
        		<jsp:include page="../../../common/peo-left.jsp"></jsp:include>
              <!-- people center right  starts-->
              <DIV class="list_nav_right">
              	<div class="list_right_ ord_">
              		<div class="order_tit">
              			<div class="order_desc">
              			亲们，订单管理已经升级，感谢友友@海事美男X 的宝贵建议。   : )<br>
              			<div>贴心提醒：<a href="<c:url value="/ordc/ddfk"/>"> 等待付款（${ddfk}）</a> &ensp;&ensp; <a href="<c:url value="/ordc/ddsh"/>"> 等待确认收获（${ddsh}）</a></div>
              			</div>
              		</div>
	            </div>
	            <div class="list_right_ ord_lis">
              		<div class="order_tit">
              			<h1>全部订单列表</h1>
              		</div>
              	<table class="ord_tb">
              		<tr>
              			<th width="110px">订单号</th>
              			<th width="270px">订单商品</th>
              			<th width="80px">收货人</th>
              			<th width="90px">订单金额</th>
              			<th width="90px">订单时间</th>
              			<th width="80px">订单状态</th>
              			<th width="80px">操作</th>
              		</tr>
              		<c:forEach items="${myreviews}" var="review">
               		<tr>
              			<td style="padding:0 2px;">${review.key}</td>
              			<td class="pname">
              			    <c:forEach items="${review.value}" var="rd">
              			    <div class="plist_pp">
              			    <div class="pimg">
		        				<a href="<c:url value="/wlc/gpro?pcode=${rd.pcode}"/>" target="_blank"><img src="<c:url value="${rd.pphoto}"/>"></a>
		        			</div>
		        			<a href="<c:url value="/wlc/gpro?pcode=${rd.pcode}"/>" target="_blank">${rd.pname}</a>
		        			<div>单价：${rd.phyprice} &nbsp;&nbsp;&nbsp;&nbsp;数量：${rd.psum}</div>
		        			</div>
              			    </c:forEach>
              			</td>
              			<td>${review.value.get(0).name}</td>
              			<td>￥${review.value.get(0).oprice}<br>${review.value.get(0).zname}</td>
              			<td>${review.value.get(0).otime}</td>
              			<td>${review.value.get(0).odeal==0?"订单已取消":review.value.get(0).odeal1==0?"等待付款":review.value.get(0).odeal2==0?"等待发货":review.value.get(0).odeal3==0?"已发货":review.value.get(0).odeal4==0?"已收货":"已完成"}</td>
              			<td>
              			     <c:if test="${review.value.get(0).odeal==1 && review.value.get(0).odeal1==0}">
              			         <a href="<c:url value="/ordc/apply?ocode=${review.value.get(0).ocode}"/>">付款</a><br><a href="<c:url value="/ordc/cancelOrder?ocode=${review.value.get(0).ocode}"/>" onclick="return confirm('确定取消该订单？');">取消订单</a>
              			     </c:if>
              			     <c:if test="${review.value.get(0).odeal1==1 && review.value.get(0).odeal2==0}">
              			         <span><a href="<c:url value="/ordc/undeliver?ocode=${review.value.get(0).ocode}"/>">提醒发货</a></span>
              			     </c:if>
              			     <c:if test="${review.value.get(0).odeal2==1 && review.value.get(0).odeal3==0}">
              			         <span><a href="<c:url value="/ordc/delivered?ocode=${review.value.get(0).ocode}"/>">查看</a></span>
              			     </c:if>
              			     <c:if test="${review.value.get(0).odeal3==1 && review.value.get(0).odeal4==0}">
              			         <a href="<c:url value="/ordc/commitShip?ocode=${review.value.get(0).ocode}"/>" onclick="return confirm('确定收到商品了？');">确认收货</a>
              			     </c:if>
              			     <c:if test="${review.value.get(0).odeal4==1}">
              			         <a href="<c:url value="/ordc/showFinishOrder?ocode=${review.value.get(0).ocode}"/>">查看</a>|<a href="<c:url value="/ordc/delOrder?ocode=${review.value.get(0).ocode}"/>" onclick="return confirm('确定删除该订单？');">删除</a>
              			     </c:if>
              			     <c:if test="${review.value.get(0).odeal==0}">
              			         <a href="<c:url value="/ordc/showCancelOrder?ocode=${review.value.get(0).ocode}"/>">查看</a>|<a href="<c:url value="/ordc/delOrder?ocode=${review.value.get(0).ocode}"/>" onclick="return confirm('确定删除该订单？');">删除</a>
              			     </c:if>
              			</td>
              		</tr>             		
              		</c:forEach>
					<tr bgcolor="#EEEEEE">
						<td align="center" colspan="10" style="line-height: 40px">
							<pg:paging currentPage="${myreviewPage.pageNumber}"
									   baseUrl="?keyword=${keyword}&start-time=${start}&end-time=${end}&reco-state=${state}&"
									   total="${myreviewPage.totalRow}" pageSize="55"></pg:paging>
						</td>
					</tr>
				</table>
	            </div>
              </div>      
               <!-- people center right  ends-->
        	</div>
            <div class="cle">&nbsp;<br></div>
        </div></section>
        <!--Mid Section Ends-->
    </div>
    <div class="footer_container">
        <!--Footer Starts-->
		    <jsp:include page="../../../common/footer.jsp"></jsp:include>
        <!--Footer Ends-->
    </div>
</div>

<!--CUSTOMIZE-->
<style type="text/css">
.page_selector{ position:absolute; right:0px; top:28%;}
.page_selector a.page_open{ display:inline-block; width:60px; height:12px; background:#252525; color:#fff; text-align:center; font-size:14px; padding:20px 0px; font-weight:bold; text-decoration:none; float:left;}
.page_selector ul{ float:left; background:#f0f0f0; padding:10px 0px; border-top:solid 2px #000; border-bottom:solid 2px #000; display:none;}
.page_selector ul li{ padding:8px 10px; }
.page_selector ul li a{ font-weight:bold; text-decoration:none; color:#000; display:block; padding:2px 5px; text-transform:uppercase; font-size:11px;}

.store_selector{ position:absolute; left:0px; top:28%;}
.store_selector .store_open{display:inline-block; width:128px; height:55px;}
.store_selector div{ float:left; width:157px; height:226px; display:none;}
</style>
</body>
</html>